# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer:
pkgname=py3-flask-assets
pkgver=2.1.0
pkgrel=1
pkgdesc="Flask asset management"
options="!check" # testsuite doesn't run
url="https://pypi.org/project/Flask-Assets"
arch="noarch"
license="BSD-2-Clause"
depends="py3-flask py3-webassets"
makedepends="py3-setuptools"
checkdepends="py3-tox"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/F/Flask-Assets/Flask-Assets-$pkgver.tar.gz"
builddir="$srcdir"/Flask-Assets-$pkgver

replaces="py-flask-assets" # Backwards compatibility
provides="py-flask-assets=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	tox --sitepackages
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
79afa17f37b2943814d289208271e3fa976d79741eb34747a40747d808ffddfbbba172d596733231785834aaccc18cbf47fce038311f2f581b8f9acce2d57eb1  Flask-Assets-2.1.0.tar.gz
"
